package com.xiaoc.bulldozer.common.util;

public class DataUtil {

    public static String hidePhoneNumber(String phoneNumber){
        if (phoneNumber.length()==11) {
            String startNumber = phoneNumber.substring(0,3);
            String endNumber = phoneNumber.substring(7,10);

            return startNumber+"****"+endNumber;
        }

        return "";
    }

    public static String hideName(String name){
        if (name.length()>1) {

            return name.substring(0,1);
        }

        return "";
    }
}
